//@author A0105543N
#ifndef TRACE_H
#define TRACE_H

#include "XpensItem.h"
#include "PaymentItem.h"
#include <cstring>

class Trace{
private:
	double totalXpens;
	double totalPayment;
public:
	Trace();
	void addTrace(Item&);
	//pre:take in a transaction
	//post:add total payment or expense accordingly
	void deleteTrace(Item&);
	//pre:take in a transaction
	//post:delete total payment or expense accordingly
	void initialize(double,double);
	//pre:take in initial total expense and payment
	//post:initiallize attributes
	double gettotalXpens();
	double gettotalPayment();
};

#endif